package com.forezp.zuul.servicefeign.controller;

import com.forezp.zuul.servicefeign.ServiceHiFeignClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by Enzo Cotter on 2019/11/6.
 */
@RestController
public class HiController {

    @Autowired
    private ServiceHiFeignClient serviceClient;

    @RequestMapping("/hi")
    public String sayHi(String name){
        return serviceClient.hi(name);
    }
}
